package com.uparlange.project.flextris.util
{
	/**
	 * Random Util class
	 * 
	 * @author Ugo Parlange
	 */ 
	public class RandomUtil
	{
		/**
		 * Gets a random number 0 <= number < aMaxValue
		 * 
		 * @param aMaxValue int the max range
		 * 
		 * @return Number, the random number
		 */ 
		public static function getRandInRange(aMaxValue : int) : Number {
			return Math.round(Math.random() * (aMaxValue - 1));
		}
	}
}